<?
global $base_dir;
$base_dir='../';

/**** 模块调用*****/
include_once($base_dir."inc/inc_connect.php");		//通用函数包含文件
include_once("index_inc.php");
include_once("func/function.php");
include_once($base_dir."inc/manage.php");			//后台通用包含文件
?>
<?
//接收参数
if(is_array($_GET))
{
	foreach($_GET as $key => $value)
	{
		$$key=$value;
	}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$lanmu_name?>-后台管理系统</title>
<link href="../style/common.css" rel="stylesheet" type="text/css" />
<script src="../js/checkform.js" type="text/javascript"></script>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="lanmu_table">
  <tr>
    <td height="30" valign="bottom"><a href="<?=$url_list?>"><span class="lanmu_title"><?=$lanmu_name?></span></a><span class="lanmu_title2">&nbsp;&gt;&nbsp;添加</span></td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="margintop30_l">
<form action="<?=$url_act?>" method="post" name="search" enctype="multipart/form-data" onsubmit="return checkform();">
<table border="0" cellspacing="1" class="margintop30">
  <tr>
    <td width="114" height="25" align="right" class="title01">权限名称:</td>
    <td width="616" class="list_content1"><label>
      <input name="name" type="text" id="name" size="40" datatype="Limit" min="1" max="100" bt="1" char="用户名"/>
      <span class="red">*</span></label></td>
  </tr>
  <tr>
    <td height="25" align="right" class="title01">模块编号:</td>
    <td nowrap="nowrap" class="list_content1"><input name="permissions_id" type="text" class="input_w40" id="permissions_id" bt="1" char="模块编号" />
      <span class="red">*</span>（请参考设计文档中模块对应的编号）</td>
  </tr>
  <tr>
    <td height="25" align="right" class="title01">上级权限:</td>
    <td nowrap="nowrap" class="list_content1"><select name="parent_id" id="parent_id">
      <option value="0">请选择</option>
	  <?=getParentPermissionList()?>
    </select>    </td>
  </tr>
  <tr>
    <td height="25" align="right" class="title01">管理页面地址:</td>
    <td nowrap="nowrap" class="list_content1"><input name="link" type="text" id="link" size="40"/></td>
  </tr>
  <tr>
  	<td height="25" align="right" class="title01">排序:</td>
  	<td nowrap="nowrap" class="list_content1">
  		<input name="px" type="text" class="input_w40" id="px" />
  	</td>
  	</tr>
  <tr>
		<td height="25" align="right" class="title01">是否为菜单:</td>
  		<td nowrap="nowrap" class="list_content1">
  		<input type="radio" name="ismemu" value="1" checked="checked" />
  		是
  		<input type="radio" name="ismemu" value="0" />
  		否</td>
  	</tr>
  <tr>
    <td height="25" align="right" class="title01">默认开放:</td>
    <td nowrap="nowrap" class="list_content1"><input type="radio" name="isview" value="1" checked="checked" />
是
  <input name="isview" type="radio" value="0" />
否</td>
  </tr>
  <tr>
    <td height="25" align="right" class="title01">备注:</td>
    <td nowrap="nowrap" class="list_content1"><textarea name="beizhu" cols="40" id="beizhu" char="真实姓名"></textarea></td>
  </tr>
  <tr>
    <td height="25" colspan="2" align="center" class="list_content1">
      <input type="submit" name="Submit2" value="提交" />
      &nbsp;&nbsp;
      <input name="reset" type="reset" value="重填" />
	  <input name="createtime" type="hidden" id="createtime" value="<?=time()?>" />
      <input name="act" type="hidden" id="act" value="save" />    </td>
  </tr>
</table>
</form>
<!-- 7caihu.com Baidu tongji analytics -->
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fb8797ecb21d1ccb839c35b190277a0cd' type='text/javascript'%3E%3C/script%3E"));
</script>
</body>
</html>
<?
include_once($base_dir."inc/inc_unconnect.php")
?>